package com.hoku.account.model;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 使用hibernate-validation 作为javax-validation的实现
 * @author ZHUFEIFEI
 */
@Data
public class User {
	@NotNull
	@Length(min = 3, max = 20)
	private String username;
	@NotNull
	@Length(min = 3, max = 20)
	private String password;
}
